package com.member.shop.dto;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;

/**
 * @author wangxin
 * @version 1.0
 * @date 2024/7/9 下午3:21
 **/
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class UpdatePasswordDto {

    @NotBlank(message = "手机号码不能为空")
    private String phoneNumber;

    @NotBlank(message = "验证码不能为空")
    private String verificationCode;

    @NotBlank(message = "密码不能为空")
    @Length(min = 8, max = 20, message = "密码长度为8-20位")
    private String password;

}
